﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace BG.DAL.Model
{
    public class User
    {
        [Key]
        public Guid kUserId { get;set; }

        [Display(Name = "UserName"), Required(ErrorMessage = "* This field is required"), StringLength(50)]
        public String sUserName { get; set; }

        [Display(Name = "Password"), StringLength(50)]
        public String sPassword { get; set; }

        [Display(Name = "Last Login")]
        public DateTime? dtDateLastLogin { get; set; }

        public DateTime? dtDateAdd { get; set; }

        public DateTime? dtDateUpdate { get; set; }

        public User()
        {
            dtDateAdd = DateTime.Today;
        }
    }
}
